package com.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
    @RequestMapping("/")
    public String index()
    {
        return "index";
    }
    @RequestMapping("/a")
    public String toa(){
        return "redirect:b";
    }
    @RequestMapping("/b")
    public String tob(){
        return "b";
    }
}
